import axios from '@/utils/http'

/**
 * 修改用户状态
 * @param params 
 * @returns 
 */
export function status(params: any) {
  return axios({
    url: '/user/status',
    method: 'get',
    params: params
  })
}
// 新增用户
export function addUser(params: any) {
  return axios({
    url: '/user/add',
    method: 'post',
    params: params
  })
}
// 根据id获取用户
export function getById(params: any) {
  return axios({
    url: '/user/getById',
    method: 'get',
    params: params
  })
}
//修改用户
export function updateUser(params: any) {
  return axios({
    url: '/user/update',
    method: 'post',
    params: params
  })
}

export function updpwd(params: any) {
  return axios({
    url: '/user/updpwd',
    method: 'post',
    params: params
  })
}


